export const fromConfigdetale = (that) => {
  console.log(8888, that.$store.getters.gettersUserInfo);
  let isShow = that.$store.getters.gettersUserInfo.orgtype === "Dpt";
  return {
    fieldsConfig: [
      {
        name: "cityid",
        label: "所属城市",
        date: {
          code: "codcode",
          name: "codname",
          childCode: "AreaId",
          codeValue: "0",
        },
        fieldType: "SelectRoom",
        optionsurl: "GetAchStreetsList",
        labelLine: true,
        isShow: isShow,
        labelwidth: "110px",
      },
      {
        name: "AreaId",
        label: "所属行政区",
        date: {
          code: "codcode",
          name: "codname",
          parentCode: "cityid",
          childCode: "orgid",
          codeValue: "0",
        },
        fieldType: "SelectRoom",
        optionsurl: "GetAchEurByStreetsList",
        labelLine: true,
        isShow: isShow,
        labelwidth: "110px",
      },
      {
        name: "orgid",
        label: "所属陵园",
        date: {
          code: "codcode",
          name: "codname",
          parentCode: "AreaId",
          codeValue: "0",
        },
        fieldType: "SelectRoom",
        optionsurl: "GetOrgListByArea",
        labelLine: true,
        isShow: isShow,
        labelwidth: "110px",
      },
      {
        name: "status",
        label: "入园状态",
        fieldType: "SelectType",
        optionsurl: "GetInTypes",
        labelLine: true,
        labelwidth: "110px",
      },
      {
        name: "times",
        label: "预约活动日期",
        fieldType: "SelectDate",
        date: {
          format: "yyyy-MM-dd",
          valueformat: "yyyyMMdd",
          BeginDate: "BeginDate",
          EndDate: "EndDate",
        },
        options: [
          { codcode: null, codname: "全部" },
          { codcode: "daterange", codname: "其它" },
        ],
        labelLine: true,
        labelwidth: "110px",
      },
    ],
    buttons: {},
  };
};
